<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<title>欢迎登录</title>
	<link href="css/mui.min.css" rel="stylesheet" />
	<link href="iconfont/iconfont.css" rel="stylesheet" />
	<link href="css/posapp-login.css" rel="stylesheet" />
	<link href="css/v1.6.css" rel="stylesheet" />
	<link href="css/waitMe.min.css" rel="stylesheet" />
</head>
<body>
	<header class="mui-bar mui-bar-nav">
		<h5 class="mui-title">主页</h5>
	</header>
	<div class="mui-content">
		<div class="mui-content-padded">
			<button type="button" class="mui-btn mui-btn-block mui-btn-jpdh">
				<a class="mui-icon iconfont icon-huanyingtaocan"
					style="padding-top: 13px"></a> <span class="mui-find">奖品兑换</span>
			</button>
			<button type="button" class="mui-btn mui-btn-block mui-btn-dhjl">
				<a class="mui-icon iconfont icon-huanyingtaocan"
					style="padding-top: 13px"></a> <span class="mui-find">兑换记录</span>
			</button>
		</div>
		<nav class="mui-bar mui-bar-tab"
			style="border: none; box-shadow: none !important; margin: 10px; width: auto; border-radius: 3px !important; position: static;">
			<a class="mui-tab-item"
				style="color: white; font-size: 20px; border-radius: 3px !important;">退出登陆</a>
		</nav>
	</div>
	<script src="js/mui.min.js"></script>
	<script src="js/jquery.min.js"></script>
	<script src="js/waitMe.min.js"></script>
	<script src="js/common.js"></script>
	<script src="js/menuFlat/menuFlat.min.js"></script>
	<script src="js/setting.js"></script>

<script type="text/javascript">
		var h = mui(document).common();
		
		//奖品兑换	
		mui(".mui-content-padded").on('tap', '.mui-btn-jpdh', function(e) {			 
			h.startMask(); //页面加载的时候使用 
		 	var htype = {
					url: 'exchange-input.html'
				}
			h.forward_wechat(htype);			
		 });
		
		//兑换记录	
		mui(".mui-content-padded").on('tap', '.mui-btn-dhjl', function(e) {
			h.startMask(); //页面加载的时候使用 
		 	var htype = {
					url: 'exchange-list.html'
				}
			h.forward_wechat(htype);
		 });
	
		
		//退出登录	
		 mui(".mui-bar-tab").on('tap', '.mui-tab-item', function(e) {
			var btnArray = ['否', '是'];
			mui.confirm('是否退出登录？', '', btnArray, function(e) {
				if (e.index == 1) {
					var htype = {
						url: 'login.html?id=' + sessionStorage.getItem("activityId")
					}

					sessionStorage.setItem("activityId", null);
					sessionStorage.setItem("token", null);

					h.forward_wechat(htype);
				}
			})
		 });
	</script>
</body>
</html>
